package com.shfl.been;

import java.io.Serializable;

/**
 * 
 * �ӿڷ��ص�ͳһ����
 * 
 * @author c_caoxin
 *
 * @param <T>
 */
public class ResultBean<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	public static final int SUCCESS = 0000;
	
	public static final int FAIL = 9999;
	
	private String msg = "success";
	
	private int code = SUCCESS;
	
	private T date;
	
	public ResultBean () {
		super();
	}
	
	public ResultBean (T date) {
		super();
		this.date = date;
	}
	
	
	public T getDate(){
		return this.date;
	}
	
	
	
	
	public ResultBean(Exception e){
		super();
		this.msg = e.toString();
		this.code = FAIL;
	}
}
